package com.dlsy.ygj.entity;

import java.sql.Timestamp;

/**
 * PurchaseFavouredcard entity. @author MyEclipse Persistence Tools
 */

public class PurchaseFavouredcard implements java.io.Serializable {

	// Fields

	private Integer buyCard;
	private Integer vipId;
	private Integer favouredId;
	private Timestamp buyDate;
	private Timestamp expiresDate;
	private Integer status;
	private Double balance;
	private Integer isExpires;
	private String saleCardPeople;
	private Integer chargeNum;
	private Double chargeMoney;
	private Integer storefrontId;
	

	// Constructors

	public Integer getStorefrontId() {
		return storefrontId;
	}

	public void setStorefrontId(Integer storefrontId) {
		this.storefrontId = storefrontId;
	}

	/** default constructor */
	public PurchaseFavouredcard() {
	}

	/** full constructor */
	public PurchaseFavouredcard(Integer vipId, Integer favouredId,
			Timestamp buyDate, Timestamp expiresDate, Integer status,
			Double balance, Integer isExpires, String saleCardPeople,
			Integer chargeNum, Double chargeMoney) {
		this.vipId = vipId;
		this.favouredId = favouredId;
		this.buyDate = buyDate;
		this.expiresDate = expiresDate;
		this.status = status;
		this.balance = balance;
		this.isExpires = isExpires;
		this.saleCardPeople = saleCardPeople;
		this.chargeNum = chargeNum;
		this.chargeMoney = chargeMoney;
	}

	// Property accessors

	public Integer getBuyCard() {
		return this.buyCard;
	}

	public void setBuyCard(Integer buyCard) {
		this.buyCard = buyCard;
	}

	public Integer getVipId() {
		return this.vipId;
	}

	public void setVipId(Integer vipId) {
		this.vipId = vipId;
	}

	public Integer getFavouredId() {
		return this.favouredId;
	}

	public void setFavouredId(Integer favouredId) {
		this.favouredId = favouredId;
	}

	public Timestamp getBuyDate() {
		return this.buyDate;
	}

	public void setBuyDate(Timestamp buyDate) {
		this.buyDate = buyDate;
	}

	public Timestamp getExpiresDate() {
		return this.expiresDate;
	}

	public void setExpiresDate(Timestamp expiresDate) {
		this.expiresDate = expiresDate;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Double getBalance() {
		return this.balance;
	}

	public void setBalance(Double balance) {
		String bal = balance.toString();
		bal.substring(0,bal.lastIndexOf(".")+2);
		this.balance = Double.parseDouble(bal);
	}

	public Integer getIsExpires() {
		return this.isExpires;
	}

	public void setIsExpires(Integer isExpires) {
		this.isExpires = isExpires;
	}

	public String getSaleCardPeople() {
		return this.saleCardPeople;
	}

	public void setSaleCardPeople(String saleCardPeople) {
		this.saleCardPeople = saleCardPeople;
	}

	public Integer getChargeNum() {
		return this.chargeNum;
	}

	public void setChargeNum(Integer chargeNum) {
		this.chargeNum = chargeNum;
	}

	public Double getChargeMoney() {
		return this.chargeMoney;
	}

	public void setChargeMoney(Double chargeMoney) {
		this.chargeMoney = chargeMoney;
	}

}